#ifndef IO_H
# define IO_H

#include <stdio.h>
#include <sys/stat.h>
#include "mem_macros.h"
#include "mem_structures.h"
#include "mem_functions.h"

typedef struct
{
    FILE* 	fd;
    char*		name;
    buffer_t* buffer;
    struct stat*	info;
}
sFile;

sFile*	statFile(const char*);
int	readFile(sFile*);
int	writeFile(sFile*);

#endif


